package cloud.lysky.game.gamesampe.util;

import cloud.lysky.game.gamesampe.component.HealthComponent;
import cloud.lysky.game.gamesampe.component.SkillComponent;
import cloud.lysky.game.gamesampe.component.StatsComponent;
import cloud.lysky.game.gamesampe.entity.Player;

public class PlayerUtil {

    public static Player loadPlayer(){
        Player player = Player.mockPlayer();
        player.addComponent(new HealthComponent(player.getHP()));
        player.addComponent(new StatsComponent(player.getName(), player.getATK(), player.getDefense(), player.getCriticalHitRate(), player.getCriticalBonus()));
        player.addComponent(new SkillComponent(player.getSkills()));
        return player;
    }
}
